/*
 * @Description:
 * @Version: 2.0
 * @Autor: wangmiao
 * @Date: 2022-07-22 10:24:41
 * @LastEditors: wangmiao
 * @LastEditTime: 2022-08-31 11:05:15
 */
import { createApp } from "vue";
import "./style.scss";
import App from "./App.vue";
import { createPinia } from "pinia";
import "element-plus/theme-chalk/index.css";
import router from "./router/index";
import { registerStore } from "@/store/index";
import { components } from "./Elements";
// import vue3videoPlay from 'vue3-video-play' // 引入组件
// import 'vue3-video-play/dist/style.css' // 引入css

// import audio from "vue-mobile-audio"
const app = createApp(App);
// app.use(audio)
app.use(createPinia());
// app.use(vue3videoPlay)
// app.use(ElementPlus)
registerStore();
console.log("2222222222222", import.meta.env);
components.forEach((component) => {
  app.use(component);
});

app.use(router);
app.mount("#app");

console.log(`当前环境为${process.env.VITE_ENV}`);
